package com.gzxx.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * SysDeptDto
 *
 * @author chenjing
 * @date 2020-09-22 17:43:19
 */
@Data
@ApiModel(value = "新增部门数据传输实体", description = "新增部门数据传输实体")
public class SysDeptCreateDto implements Serializable {

    private static final long serialVersionUID = 4841055199138550942L;

    @ApiModelProperty(value = "部门名称", example = "开发部")
    @NotBlank(message = "部门名称不能为空")
    private String name;

    @ApiModelProperty(value = "部门等级", example = "1")
    @NotNull(message = "部门等级不能为空")
    private Integer level;

    @ApiModelProperty(value = "上级ID", example = "4")
    private Long parentId;

    @ApiModelProperty(value = "部门状态(0正常,1冻结)", example = "0")
    private Integer status;
}
